import request from '@/utils/request'

// 查询列表
export function listStudent(query) {
    return request({
        url: '/sc/student/list/searchList',
        method: 'get',
        params: query
    })
}

// 查询详细
export function getStudent(courseOrderId) {
    return request({
        url: '/sc/student/info/detailById/' + courseOrderId,
        method: 'get'
    })
}

// 新增
export function addStudent(data) {
    return request({
        url: '/sc/student/add/addScStudentCourseOrder',
        method: 'post',
        data: data
    })
}

// 修改
export function updateStudent(data) {
    return request({
        url: '/sc/student/update/updateScStudentCourseOrder',
        method: 'put',
        data: data
    })
}

// 删除
export function delStudent(courseOrderId) {
    return request({
        url: '/sc/student/delete/deleteById/' + courseOrderId,
        method: 'delete'
    })
}

// 导出
export function exportStudent(query) {
    return request({
        url: '/sc/student/export',
        method: 'get',
        params: query
    })
}
